//
//  CJMYCompanyHeaderCell.m
//  Boss
//
//  Created by admin on 2018/9/14.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "CJMYCompanyHeaderCell.h"
@interface CJMYCompanyHeaderCell()

@property (strong, nonatomic) IBOutlet NSLayoutConstraint *topHeight;

@property (strong, nonatomic) IBOutlet UIImageView *companyImageView;
@property (strong, nonatomic) IBOutlet UILabel *companyName;
@property (strong, nonatomic) IBOutlet UILabel *companyLabel;




@end
@implementation CJMYCompanyHeaderCell

- (void)awakeFromNib {
    [super awakeFromNib];
    if (kDevice_Is_iPhoneX) {
        self.topHeight.constant = 88;
    }else{
        self.topHeight.constant = 64;
    }
    // Initialization code
}
-(void)setModel:(CJFirmModel *)model
{
    _model = model;
    
    [self.companyImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@!default",model.firmLogo]] placeholderImage:nil];
    self.companyName.text = model.brandName;
    self.companyLabel.text = model.firmName;
    
    
    
}






- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
